home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / AppleShare API / PowerPC AppleShare API / PPC UGLibrary / PPC UGLibrary Read Me next >
Encoding:
Text File  |  1995-04-12  |  1.4 KB  |  16 lines  |  [TEXT/ttxt]

  1. UGLibrary and PowerPC Applications
  2.  
  3. There are no plans to provide UGLibrary as a native PowerPC library. Therefore, PowerPC applications must continue to use the 68K library. The code in UGLibraryGlue.c and PPCUGLibrary.c allows the use of all UGLibrary functions from PowerPC applications written in C.
  4.  
  5. To use UGLibrary functions from PowerPC applications, simply use the latest header files from this SDK (they've been modified to include alignment pragmas), and add PPCUGLibrary.c and the stand-alone code resource in UGLibrary.rsrc to your project.
  6.  
  7. The Files
  8.  
  9. UGLibraryGlue.h defines the function prototypes, routine descriptors, calling macros, data types and  data structures used in UGLibraryGlue.c and PPCUGLibrary.c.
  10.  
  11. UGLibraryGlue.c defines a single function (main) which is linked with the 68K library, UGLibrary.o. The function returns function pointers to all UGLibrary routines in a UGEntryPoints structure.
  12.  
  13. UGLibrary.rsrc.make, a MPW make file, compiles UGLibraryGlue.c and links it with UGLibrary.o in a stand-alone code resource of type 'CUST', ID 128 and puts it into the file UGLibrary.rsrc.
  14.  
  15. PPCUGLibrary.c implements the UGLibrary routines. Each UGLibrary routine is called through the CallUGProc macro using a function pointer in the initialized global UGEntryPoints structure. The global UGEntryPoints structure is initialized the first time UGOpenFile is called.
  16.